<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<link rel="icon" type="shortcut icon" th:href="@{/img/favicon.ico}" />
	<link rel="stylesheet" type="text/css" th:href="@{/css/bootstrap.min.css}" />
	<link rel="stylesheet" type="text/css" th:href="@{/css/global.css}" />
	<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
	<title>Echo - 粉丝</title>
</head>
<body>
	<div class="nk-container">
		<!-- 头部 -->
		<header class="bg-dark sticky-top" th:replace="index::header"></header>

		<!-- 内容 -->
		<div class="main">
			<div class="container">
				<div class="position-relative">
					<!-- 选项 -->
					<ul class="nav nav-tabs mb-3">
						<li class="nav-item">
							<a class="nav-link position-relative" th:href="@{|/follower/findFollowerListByUserId/${loginUser.uid}|}">
								<i class="text-info" th:text="${loginUser.uname}"></i> 关注的人</a>
						</li>
						<li class="nav-item">
							<a class="nav-link position-relative active" th:href="@{|/follower/findFansListByUserId/${loginUser.uid}|}">
								关注 <i class="text-info" th:text="${loginUser.uname}"></i> 的人</a>
						</li>
					</ul>
					<a th:href="@{|/account/info/${loginUser.uid}|}" class="text-muted position-absolute rt-0">返回个人主页&gt;</a>
				</div>
				
				<!-- 粉丝列表 -->
				<ul class="list-unstyled">
					<li class="media pb-3 pt-3 mb-3 border-bottom position-relative" th:each="fans:${fansList}">
						<a th:href="@{|/account/info/${fans.userId}|}">
							<img th:src="${fans.headUrl}" class="mr-4 rounded-circle user-header" alt="用户头像" >
						</a>
						<div class="media-body">
							<h6 class="mt-0 mb-3">
								<span class="text-success" th:text="${fans.username}"></span>
								<span class="float-right text-muted font-size-12">
									关注于 <i th:text="${#dates.format(fans.createTime, 'yyyy-MM-dd HH:mm:ss')}"></i></span>
							</h6>
							<div>
								<button type="button" th:class="|btn btn-secondary btn-sm float-right mr-5 follow-btn|"
										th:text="拉黑"></button>
							</div>
						</div>
					</li>
				</ul>
				<!-- 分页 -->
<!--				<nav class="mt-5" th:replace="index::pagination"></nav>-->

			</div>
		</div>

		<!-- 尾部 -->
		<footer class="bg-dark" th:replace="index::footer"></footer>

	</div>

	<script th:src="@{/js/jquery-3.1.0.min.js}"></script>
	<script th:src="@{/js/popper.min.js}"></script>
	<script th:src="@{/js/bootstrap.min.js}"></script>
	<script th:src="@{/js/global.js}"></script>
	<script th:src="@{/js/profile.js}"></script>
</body>
</html>
